using System;
using System.Windows;
using SmartBoard.Book.Dialogs;
using SmartBoard.Core.UI;

namespace SmartBoard.Book.Commands
{
    public class WPFBookUIManager:IBookUIManager
    {
        public WPFBookUIManager()
        { }

        public IUIPresenter CanCreateNewBookUIDialog
        {
            get
            {
                return new MessageBoxUIPresenter()
                           {
                               Buttons = MessageBoxButton.YesNoCancel,
                               Caption = "Create New Book",
                               Message = "An unsaved report is already open. Do you want to unload it?",
                               TrueResult = MessageBoxResult.Yes
                           };
            }
        }

        public IUIPresenter CanOpenBookUIDialog
        {
            get { throw new NotImplementedException(); }
        }

        public ICreateNewBookUIPresenter CreateNewBookUIDialog
        {
            get
            {
                return new CreateNewBookDialog(); 
            }
        }

        public ISaveBookUIPresenter SaveBookDialog
        {
            get { throw new NotImplementedException(); }
        }

        public ISaveBookUIPresenter SaveAsBookDialog
        {
            get { throw new NotImplementedException(); }
        }

        public IOpenBookUIPresenter OpenBookUIDialog
        {
            get { throw new NotImplementedException(); }
        }
    }
}